import React from 'react';
import {createAppContainer, createStackNavigator, NavigationActions, StackActions} from 'react-navigation';
import HomeScreen from './pages/home/HomePage';
import DetailsScreen from './pages/my/MyPage';
import ScanPage from './pages/ScanPage';
import logPage from './pages/logPage';
import cameraPage from './pages/cameraPage';
import {Text} from 'react-native-elements';
import {Image, TouchableOpacity} from 'react-native';


const RootStack = createStackNavigator({
        Home: {
            screen: HomeScreen,
        },
        Details: {
            screen: DetailsScreen,
        },
        ScanPage: {
            screen: ScanPage,
        },
        logScreen: {
            screen: logPage,
        },
        cameraPage: {
            screen: cameraPage,
        }
    }, {
        initialRouteName: 'Home',
        defaultNavigationOptions: {
            headerStyle: {
                backgroundColor: '#f4511e',
            },
            headerTintColor: '#fff',
            headerTitleStyle: {
                fontWeight: 'bold',
            },
        },
    },
);
const AppContainer = createAppContainer(RootStack);
export default AppContainer;
